package com.huawei;

/**
 * Created by Z-hong on 2024/7/22.
 */
import java.math.BigDecimal;
import java.util.*;
public class HJ57 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str_1=sc.nextLine();
        String str_2=sc.nextLine();
        int i = str_1.length() - str_2.length();
        if(i>0){
            for (int j = 0; j < i; j++) {
                str_2="0"+str_2;
            }
        }else if(i<0){
            for (int j = 0; j < -i; j++) {
                str_1="0"+str_1;
            }
        }
        BigDecimal b1 = new BigDecimal(str_1);
        BigDecimal b2 = new BigDecimal(str_2);
        System.out.println(b1.add(b2));
    }
}
